import java.io.*;
import java.lang.*;

public class Camera {
static int i = 3;
static int j = 9;

//String[] arguements = new String[3];
String[] brand = new String[3];
int[] fLength = new int[3];
boolean[] shutterPressed = new boolean[3];

public void getData(String[] args){
//arguements = args;
int indexI = 0;
int indexJ = 0;

while(indexI < Camera.i){
        while(indexJ < Camera.j){
                brand[indexI] = args[indexJ];
                indexJ++;
                fLength[indexI] = Integer.parseInt(args[indexJ]);
                indexJ++;
                shutterPressed[indexI] = Boolean.valueOf(args[indexJ]).booleanValue();
                indexJ++;
                indexI++;
        }
}
}

public void putData(String[] stringCamera, int[] intFocallenght, boolean[] shutterPressed){
int indexI = 0;

while(indexI < Camera.i){
        System.out.println("Camera"+ indexI);
        System.out.println("Camera Brand = "+brand[indexI]);
        System.out.println("Focallength  = "+fLength[indexI]);
        System.out.println("ShutterPressed  = "+shutterPressed[indexI]);
        System.out.println();
       
        indexI++;

}
}
public void Comparing()
{
    int idxI=0;
    int idxJ=0;
        while(idxI<i-1)
        {
            if(brand[idxI].equals(brand[idxI+1]))
            {
                System.out.println("Camera"+ idxI+" and Camera"+(idxI+1)+" are Same");
            }
            else { System.out.println("Camera"+ idxI+" and Camera"+(idxI+1)+" are Different");}
            idxI++;
        }

       while(idxJ<i-1)
        {
            if(brand[idxJ].equals(brand[idxJ+2]))
            {
                System.out.println("Camera"+ idxJ+" and Camera"+(idxJ+2)+" are Same");
            }
            else { System.out.println("Camera"+ idxJ+" and Camera"+(idxJ+2)+" are Different");}
           break;
        }
}

public static void main(String[] args) {
Camera m = new Camera();
m.getData(args);
m.putData(m.brand, m.fLength, m.shutterPressed);
m.Comparing();

}

}
